import { ChartProps } from '../../components/my-f2/type'

export const lineMock: ChartProps[] = [
  {
    cn: 'line',
    categories: ['2017-06-05', '2017-06-06', '2017-06-07', '2017-06-08', '2017-06-09', '2017-06-10', '2017-06-11', '2017-06-12', '2017-06-13', '2017-06-14', '2017-06-15', '2017-06-16', '2017-06-17', '2017-06-18', '2017-06-19', '2017-06-20', '2017-06-21', '2017-06-22', '2017-06-23', '2017-06-24', '2017-06-25', '2017-06-26', '2017-06-27', '2017-06-28', '2017-06-29', '2017-06-30', '2017-07-01', '2017-07-02', '2017-07-03', '2017-07-04', '2017-07-05', '2017-07-06', '2017-07-07', '2017-07-08', '2017-07-09', '2017-07-10', '2017-07-11', '2017-07-12', '2017-07-13', '2017-07-14', '2017-07-15', '2017-07-16', '2017-07-17', '2017-07-18', '2017-07-19', '2017-07-20', '2017-07-21', '2017-07-22', '2017-07-23', '2017-07-24'],
    series: [
      {
        type: 'a',
        style: 'dash',
        point: {
          size: 3,
          stroke: '#F00',
          lineWidth: 1
        },
        data: [116, 129, 135, 86, 73, 85, 73, 68, 92, 130, 245, 139, 115, 111, 309, 206, 137, 128, 85, 94, 71, 106, 84, 93, 85, 73, 83, 125, 107, 82, 44, 72, 106, 107, 66, 91, 92, 113, 107, 131, 111, 64, 69, 88, 77, 83, 111, 57, 55, 60]
      },
      {
        type: 'b',
        color: '#93F',
        style: 'smooth',
        data: [60, 55, 57, 111, 83, 77, 88, 69, 64, 111, 131, 107, 113, 92, 91, 66, 107, 106, 72, 44, 82, 107, 125, 83, 73, 85, 93, 84, 106, 71, 94, 85, 128, 137, 206, 309, 111, 115, 139, 245, 130, 92, 68, 73, 85, 73, 86, 135, 129, 116]
      }
    ],
    xAxis: {
      tickCount: 3
    },
    yAxis: {
      tickCount: 3
    },
    legend: {
      position: 'top',
      offsetY: 5
    },
    tooltip: {
      showTitle: true,
      showCrosshairs: true
    }
  }
]
export const areaMock: ChartProps[] = [
  {
    cn: 'area',
    categories: ['2017-06-05', '2017-06-06', '2017-06-07', '2017-06-08', '2017-06-09', '2017-06-10', '2017-06-11', '2017-06-12', '2017-06-13', '2017-06-14', '2017-06-15', '2017-06-16', '2017-06-17', '2017-06-18', '2017-06-19', '2017-06-20', '2017-06-21', '2017-06-22', '2017-06-23', '2017-06-24', '2017-06-25', '2017-06-26', '2017-06-27', '2017-06-28', '2017-06-29', '2017-06-30', '2017-07-01', '2017-07-02', '2017-07-03', '2017-07-04', '2017-07-05', '2017-07-06', '2017-07-07', '2017-07-08', '2017-07-09', '2017-07-10', '2017-07-11', '2017-07-12', '2017-07-13', '2017-07-14', '2017-07-15', '2017-07-16', '2017-07-17', '2017-07-18', '2017-07-19', '2017-07-20', '2017-07-21', '2017-07-22', '2017-07-23', '2017-07-24'],
    series: [
      {
        type: 'a',
        style: 'dash',
        color: '#9CF',
        point: {
          size: 3,
          stroke: '#F00',
          lineWidth: 1
        },
        data: [116, 129, 135, 86, 73, 85, 73, 68, 92, 130, 245, 139, 115, 111, 309, 206, 137, 128, 85, 94, 71, 106, 84, 93, 85, 73, 83, 125, 107, 82, 44, 72, 106, 107, 66, 91, 92, 113, 107, 131, 111, 64, 69, 88, 77, 83, 111, 57, 55, 60]
      },
      {
        type: 'b',
        color: '#93F',
        style: 'smooth',
        data: [60, 55, 57, 111, 83, 77, 88, 69, 64, 111, 131, 107, 113, 92, 91, 66, 107, 106, 72, 44, 82, 107, 125, 83, 73, 85, 93, 84, 106, 71, 94, 85, 128, 137, 206, 309, 111, 115, 139, 245, 130, 92, 68, 73, 85, 73, 86, 135, 129, 116]
      }
    ],
    xAxis: {
      tickCount: 3
    },
    yAxis: {
      tickCount: 3
    },
    legend: {
      position: 'top',
      offsetY: 5
    },
    tooltip: {
      showTitle: true,
      showCrosshairs: true
    }
  }
]
export const pieMock: ChartProps[] = [
  {
    cn: 'pie',
    series: [
      {
        color: '#F00',
        type: '芳华',
        data: 0.4
      },
      {
        type: '妖猫传',
        data: 0.2
      },
      {
        type: '机器之血',
        data: 0.18
      },
      {
        type: '心理罪',
        data: 0.15
      },
      {
        type: '寻梦环游记',
        data: 0.05
      },
      {
        type: '其他',
        data: 0.02
      }
    ],
    radius: 1.0,
    innerRadius: 0,
    sidePadding: 40,
    style: {
      lineWidth: 2,
      stroke: '#fff'
    },
    legend: {
      position: 'left'
    },
    tooltip: true
  },
  {
    cn: 'pie',
    series: [
      {
        type: '股票类',
        data: 83.59,
        color: 'red'
      },
      {
        type: '债券类',
        data: 2.17
      },
      {
        type: '现金类',
        data: 14.24
      }
    ],
    radius: 0.85,
    innerRadius: 0.7,
    legend: {
      position: 'right'
    },
    guide: {
      text: {
        position: ['50%', '50%'],
        content: 'guide',
        style: {
          fontSize: 40,
          fill: '#1890FF'
        }
      }
    }
  },
  {
    cn: 'pie',
    series: [
      {
        color: '#F00',
        type: '芳华',
        data: 0.4
      },
      {
        type: '妖猫传',
        data: 0.2
      },
      {
        type: '机器之血',
        data: 0.18
      },
      {
        type: '心理罪',
        data: 0.15
      },
      {
        type: '寻梦环游记',
        data: 0.05
      },
      {
        type: '其他',
        data: 0.02
      }
    ],
    radius: 0.6,
    style: {
      lineWidth: 2,
      stroke: '#fff'
    },
    legend: {
      position: 'top'
    },
    tooltip: true,
    pieLabel: true, // 是否展示标签示例文字,
    activeShape: true, // 饼图是否有点击效果
    sidePadding: 10 // 标签文字和饼图之间的padding，越大越近，越小越远
  }
]
export const columnMock: ChartProps[] = [
  {
    cn: 'column',
    categories: ['1951 年', '1952 年', '1956 年', '1957 年', '1958 年', '1959 年', '1960 年', '1962 年'],
    series: [
      {
        data: [38, 52, 61, 145, 48, 38, 38, 38]
      }
    ],
    xAxis: {
      tickCount: 3
    },
    yAxis: {
      tickCount: 3
    },
    legend: {
      position: 'top',
      offsetY: 5
    }
  },
  {
    cn: 'column',
    categories: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.'],
    series: [
      {
        type: 'London',
        color: '#F00',
        data: [18.9, 28.8, 39.3, 81.4, 47, 20.3, 24, 35.6]
      },
      {
        type: 'Berlin',
        data: [12.4, 23.2, 34.5, 99.7, 52.6, 35.5, 37.4, 42.4]
      }
    ],
    xAxis: {
      tickCount: 3
    },
    yAxis: {
      tickCount: 3
    },
    legend: {
      position: 'top',
      offsetY: 5
    },
    adjust: 'stack'
  },
  {
    cn: 'column',
    categories: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.'],
    series: [
      {
        type: 'London',
        color: '#F00',
        data: [18.9, 28.8, 39.3, 81.4, 47, 20.3, 24, 35.6]
      },
      {
        type: 'Berlin',
        data: [12.4, 23.2, 34.5, 99.7, 52.6, 35.5, 37.4, 42.4]
      }
    ],
    xAxis: {
      tickCount: 3
    },
    yAxis: {
      tickCount: 3
    },
    legend: {
      position: 'top',
      offsetY: 5
    },
    adjust: 'dodge'
  }
]
